<template>
  <div id="app">
    <div class="main">
      <router-view
        @get-player-id="getPlayerId"
        @get-play-all-id="getPlayAllId"
      ></router-view>
      <player
        v-show="playerId"
        :player-id="playerId"
        :list-id="listId"
        @set-player-id="setPlayerId"
        v-if="!$route.meta.footerNAV"
        :getlike="getlike"
      ></player>
    </div>
  </div>
</template>

<script>
import player from "./components/base/players.vue";
export default {
  data() {
    return {
      playerId: null,
      listId: null,
      getlike: null,
    };
  },
  methods: {
    getPlayerId(id) {
      this.playerId = id;
    },
    getPlayAllId(id) {
      this.listId = id;
    },
    setPlayerId(id) {
      this.playerId = id;
    },
    getLikeId(id) {
      this.getlike = id;
    },
  },
  components: { player },
};
</script>

<style lang="less">
@import "./assets/css/base.css";
</style>